﻿<%@ Page Language="C#" MasterPageFile="~/PaginaInicio.master" AutoEventWireup="true" CodeFile="Agenda.aspx.cs" Inherits="Agenda" Title="Página sin título" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style5
        {
            width: 549px;
        }
        
           
        .accordionCabecera
{

background-color: #118BD9;
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
margin-bottom: 2px;
padding: 2px;
cursor: pointer;
Height: 20px;
color: #CCCCCC;

}


.accordionContenido
{
font-family: Tahoma;
background-color: #0085C6;
border: none;

border-top: none;
margin-bottom: 7px;
font-size: 12px;
padding: 3px;
}


        .tablaEncabezado
        {
            color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
            background-color: #C62D73;
            font-size: small;
            
        }
        
                .style27
        {
            color: #FFFFFF;
            height: 23px;
            font-family: Tahoma;
            font-size: medium;
        }
        .style62
        {
            width: 438px;
            text-align: right;
        }
        .style63
        {
            width: 197px;
            margin-left: 80px;
        }
                
        .style10
        {
            border: medium solid #0085C6;
            width: 228px;
            color: #CCCCCC;
            font-size: small;
            font-family: Tahoma;
            margin-left: 0px;
            margin-right: 0px;
            margin-top: 0px;
        }
        
                .tablaFilas
        {
        	color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
            font-size:small;
        }
       
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <table style="width: 100%;" cellspacing="-1">
        <tr>
            <td>
                &nbsp;
            </td>
            <td class="style5">
                <asp:Panel ID="Panel1" runat="server" Height="100%"  
                        Width="560px">
                
                    <table style="width: 100%;" cellpadding="-1" cellspacing="-1">
                        <tr>
                            <td bgcolor="#C62D73" class="style27" 
                             
                                style="border-bottom-color: #000000; border-bottom-width: medium; border-bottom-style: solid;" 
                                colspan="2">
                                 Agenda</td>
                        </tr>
                        <tr>
                            <td colspan="2" bgcolor="#00334C" style="text-align: center">
                                <table style="width: 98%; margin-left: 5px; margin-right:10px; margin-bottom:5px; margin-top:5px;" 
                                    bgcolor="#00547D" cellpadding="-1" cellspacing="4">
                                    <tr>
                                        <td class="style63">
                                            <asp:DropDownList ID="ddlTipoActividad" runat="server" AppendDataBoundItems="True" 
                                                BackColor="#0085C6" CssClass="style10" Font-Names="Tahoma" ForeColor="#CCCCCC" 
                                                style="font-family: Tahoma"  
                                                Width="200px">
                                                <asp:ListItem Value="TipoActividad">Tipo de Actividad</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                      
                                      
                                      
                                        <td class="style63">
                                            <asp:TextBox ID="txtFecha" runat="server" BackColor="#0085C6" 
                                                BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                                Height="20px" Width="200px"></asp:TextBox>
                                            <cc1:CalendarExtender ID="txtFecha_CalendarExtender" runat="server" 
                                                Enabled="True" Format="d/MM/yyyy" TargetControlID="txtFecha">
                                            </cc1:CalendarExtender>
                                            <cc1:TextBoxWatermarkExtender ID="txtFecha_TextBoxWatermarkExtender" 
                                                runat="server" TargetControlID="txtFecha" WatermarkText="Fecha (Hasta)">
                                            </cc1:TextBoxWatermarkExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style63" colspan="2">
                                            <span>
                                            <asp:GridView ID="gvAgenda" runat="server" AllowSorting="True" 
                                                AutoGenerateColumns="False" Height="98%"
                                                onselectedindexchanging="gvAgenda_SelectedIndexChanging"
                                                style="text-align: center; margin-top: 0px" Width="535px" 
                                               >
                                                <RowStyle CssClass="tablaFilas" />
                                                <Columns>
                                                    <asp:BoundField DataField="Fecha" HeaderText="Fecha" SortExpression="Fecha" 
                                                        DataFormatString="{0:d}">
                                                        <HeaderStyle CssClass="tablaEncabezado" />
                                                        <ItemStyle CssClass="tablaFilas" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="fechaFin" HeaderText="Fin" DataFormatString="{0:d}">
                                                        <HeaderStyle CssClass="tablaEncabezado" />
                                                        <ItemStyle CssClass="tablaFilas" />
                                                    </asp:BoundField>
                                                    
                                                    <asp:BoundField DataField="Actividad" HeaderText="Actividad">
                                                        <HeaderStyle CssClass="tablaEncabezado" />
                                                        <ItemStyle CssClass="tablaFilas" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="Descripcion" HeaderText="Descripción">
                                                        <HeaderStyle CssClass="tablaEncabezado" />
                                                        <ItemStyle CssClass="tablaFilas" />
                                                    </asp:BoundField>
                                                    <asp:CommandField ShowSelectButton="True" SelectText="Detalles">
                                                        <HeaderStyle CssClass="tablaEncabezado" />
                                                        <ItemStyle CssClass="tablaFilas" ForeColor="White" />
                                                    </asp:CommandField>
                                                </Columns>
                                            </asp:GridView>
                                            </span></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="style62" bgcolor="#00334C" style="border-top-color: #000000; border-top-width: medium; border-top-style: solid;">
                                <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                    <ContentTemplate>
                                        <asp:Label ID="lblMensaje" runat="server" ForeColor="Maroon" 
                                            style="color: #FF3300"></asp:Label>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td bgcolor="#00334C" style="text-align: right; border-top-color: #000000; border-top-width: medium; border-top-style: solid;">
                               <span>
                                <asp:Button ID="btnCerrar" runat="server" BackColor="#0085C6" 
                                    BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                                    Height="23px"  style="margin-top: 0px" Text="Cerrar" 
                                    ValidationGroup="1" Width="54px" ToolTip="Cerrar" 
                                    onclick="btnCerrar_Click" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
                               
                               </td>
                        </tr>
                    </table>
                
                
                </asp:Panel>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        </table>

</asp:Content>

